import { Component, Injector, OnInit, ViewChild } from '@angular/core';
import { ModalHelper, _HttpClient } from '@delon/theme';
import { STComponentBase } from '@shared/itcore/components/st-component-base';
import { ItcoreSTColumn } from '@shared/itcore/services/alain.types';

@Component({
  selector: 'app-db-separete',
  templateUrl: './separete.component.html',
})
export class DbSepareteComponent extends STComponentBase implements OnInit {

  constructor(injector: Injector) {
    super(injector);
    this.moduleName = 'DbSepareteLog';
    this.areaName = 'db/';
  }
  ngOnInit() {
    super.InitBase();
  }
  protected GetSTColumns(): ItcoreSTColumn[] {
    return [
      { title: '备份配置Id', index: 'BackUpConfigId', filterable: true, },
      { title: '来源表名', index: 'FromTableName' },
      { title: '来源数据库名称', index: 'FromDataBaseName' },
      { title: '当前分表表名', index: 'SepTableName' },
      { title: '当前分表数据库名称', index: 'SepDataBaseName' },
      { title: '备份查询的时间字段', index: 'TimeColumn' },
      { title: '数据的起始时间', index: 'StartTime', type: 'date' },
      { title: '数据的结束时间', index: 'EndTime', type: 'date' },
      { title: '创建时间', index: 'CreatedTime', sort: true, type: 'date', filterable: true },
    ];
  }
}
